package com.firewolf.fr.actions;

import java.util.Arrays;
import java.util.List;

public class TestAction {
	private String user; //要被返回的数据
	private List<String> users; //要被返回的数据
	
	public String execute(){
		//设置数据，真实项目应该是从数据库中查询出来的
		user = "唐僧";
		users = Arrays.asList("猪八戒","悟空","沙和尚");
		return "test";
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public List<String> getUsers() {
		return users;
	}
	public void setUsers(List<String> users) {
		this.users = users;
	}
	
}
